{% extends "teacher/base.html" %}
{% block extracss %}
    <style>
        .cdlist {
            display: none
        }
        .top button {

            margin: 5px;
            border: 1px solid #2480c2;
            box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.5);

            background: linear-gradient(#54b3ff, #0078d9);
            padding: 3px 8px;
            color: #fff;
        }
        .top {
            text-align: right;
            padding-right:4px
        }
        #submain {
            width: 100%;
            height: 465px;
            border: 0px #ddd dotted;
        }
    </style>
{% endblock %}
{% block main %}
{#    {% if group %}#}
{#        <span id="daohang"> <a href="{% url 'classname' %}?g={{ g }}&c={{ c }}"><h2 class="mbx">{{ group }}{{ class }}学生信息 </h2></a></span>#}
{#    {% endif %}#}
    <div class="top">
        <button type="button" value="{% url 'zuoye' %}">布置作业</button>
        <button type="button" value="{% url 'up' %}">上传资料</button>
        <button type="button" value="{% url 'addstu' %}">添加学生</button>
    </div>
    <div class="dhbg">
        <iframe id="submain" src="{% url 'default' %}" scrolling="no"></iframe>
    </div>

{% endblock %}
{% block extrajs %}
    <script>
        $('.ta1').click(function () {
            $('.cdlist').hide();
            $(this).next().show();
        });
        $('.top button').click(function () {
            srcstr = $(this).attr('value');
            htmlstr = $(this).html();
            $('#submain').attr('src', srcstr)
            $('#daohang').html("<a href='{% url 'classname' %}?g={{ g }}&c={{ c }}'> {{ group }}{{class}}学生信息 </a>>><a>" + htmlstr + "</a>")
        })

    </script>
{% endblock %}